package com.t11;

import java.util.ArrayList;

/**
 * Created by xuyiwei on 2018/7/22.
 */
class Apple{
    private static long counter;
    private final long id = counter++;
    public long id(){return id;}
}
class Orange{

}
public class ApplesAndOrangesWithoutGeneraics {
    public static void main(String[] args) {
        ArrayList apples = new ArrayList();
        for(int i=0;i<3;i++)
            apples.add(new Apple());
        apples.add(new Orange());

    }
}
